package junit;

import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.junit.Test;

import com.tentcoo.entity.SuAdminEntity;
import com.tentcoo.service.SuAdminService;

@RunWith(SpringJUnit4ClassRunner.class)  
//加载spring配置文件


@ContextConfiguration(locations={"classpath:config/hibernate.xml"})  
public class SuAdimJunit {
	
	@Autowired
	private SuAdminService suAdminService ;
	
	@Test
	public void Test(){
		
		SuAdminEntity admin=new SuAdminEntity();
		admin.setUserName("133");
		admin.setPassWord("12");
		suAdminService.updateUser(admin);
	}
}
